<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			window.onload = function(){
				
			}
			function clickMe(){
				var baidu = document.getElementsByTagName("a")[0];
				baidu.target = "_self";
				baidu.href = "http://www.163.com";
				baidu.setAttribute("addr","shandong");
			}
		</script>
	</head>
	<body>
		<a href="http://www.baidu.com" addr="po" target="_blank" class="apple">百度</a><br />
		<button onclick="clickMe()">点击</button>
	</body>
</html>
